Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: alter schema owner #52781

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Conversation

RichardJCai
Copy link
Contributor

Release note (sql change): Support ALTER SCHEMA OWNER TO
The command changes the owner of a schema.

To use the conditions, the following conditions must be met:
The user executing the command must be the explicit owner of the schema.
(Not just have membership of the role who owns the schema.)
The user executing the command must be a member of the new owner role.
The new owner role must have CREATE on the database the schema belongs to.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Release note (sql change): Support ALTER SCHEMA <schema> OWNER TO <owner>
The command changes the owner of a schema.

To use the conditions, the following conditions must be met:
The user executing the command must be the  of the schema.
The user executing the command must be a member of the new owner role.
The new owner role must have CREATE on the database the schema belongs to.
@RichardJCai RichardJCai requested review from rohany, solongordon and a team August 20, 2020 23:44
@RichardJCai RichardJCai marked this pull request as ready for review August 20, 2020 23:44
@RichardJCai
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 21, 2020

Build succeeded:

@craig craig bot merged commit 86165b9 into cockroachdb:master Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants